package erfgame.core.world.terrain;

public class PixelDepth {
	private int firstDepthStart;
	private int firstDepthEnd;
	private byte firstBlockGridId;
	private int numDepths;
	
	public PixelDepth( int firstDepthStart, int firstDepthEnd, byte firstDepthGridId, int numDepths ) {
		this.firstBlockGridId = firstDepthGridId;
		this.firstDepthStart = firstDepthStart;
		this.firstDepthEnd = firstDepthEnd;
		this.numDepths = numDepths;
		if( firstDepthStart > 255 || firstDepthStart < 0 ) {
			throw new RuntimeException( "unexpected depth start "+firstDepthStart );
		}
	}
	
	public byte getFirstBlockGridId() {
		return this.firstBlockGridId;
	}
	 
	public int getFirstDepthStart() {
		return this.firstDepthStart;
	}
	
	public int getFirstDepthEnd() {
		return this.firstDepthEnd;
	}
	
	public int getNumDepths() {
		return this.numDepths;
	}
}
